/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.huikecloud.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.mp.base.BaseEntity;

/**
 * 实体类
 *
 * @author Blade
 * @since 2021-07-08
 */
@Data
@TableName("kkb_port")
@ApiModel(value = "Port对象", description = "Port对象")
public class Port extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;
    /**
     * 映射名称
     */
    @ApiModelProperty(value = "映射名称")
    private String mappingName;
    /**
     * 端口类型，1：web；2：tcp
     */
    @ApiModelProperty(value = "端口类型，web；tcp")
    private String mappingType;
    /**
     * 服务器ip
     */
    @ApiModelProperty(value = "服务器ip")
    private String ip;
    /**
     * 开通的端口
     */
    @ApiModelProperty(value = "开通的端口")
    private Integer port;
    /**
     * 执行脚本
     */
    @ApiModelProperty(value = "执行脚本")
    private String script;
    /**
     * 映射名称
     */
    @ApiModelProperty(value = "映射路径")
    private String mappingUrl;
    /**
     * 创建人真名
     */
    @ApiModelProperty(value = "创建人真名")
    private String userName;
    /**
     * 创建人email
     */
    @ApiModelProperty(value = "创建人email")
    private String userEmail;
//    /**
//     * 创建人
//     */
//    @ApiModelProperty(value = "创建人")
//    private Long createUser;
//    /**
//     * 创建时间
//     */
//    @ApiModelProperty(value = "创建时间")
//    private LocalDateTime createTime;
//    /**
//     * 修改人
//     */
//    @ApiModelProperty(value = "修改人")
//    private Long updateUser;
//    /**
//     * 修改时间
//     */
//    @ApiModelProperty(value = "修改时间")
//    private LocalDateTime updateTime;
//    private Integer status;
//    private Integer isDeleted;


}
